/*
 * @Author: Zcl84765
 * @Date: 2023-01-19 14:02:22
 * @LastEditors: Zcl84765
 * @LastEditTime: 2023-01-19 14:29:16
 */

export default {
  namespaced: true, //定义命名空间，防止冲突,
  state: {
    Info: {
      name: 'zs',
      age: 18,
      sex: '男',
    },
  },
  mutations: {
    setUsersInfo(state, data) {
      state.Info = data
    },
  },
  actions: {
    ASYNCSETINFO(context, data) {
      setTimeout(() => {
        context.commit('setUsersInfo', data)
      }, 3000)
    },
  },
}
